﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SecuredSite.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BigLotterySyndicate.Secured.Payments.Default" %>
<%@ Register TagPrefix="Syndicate" TagName="Pager" Src="~/Controls/Pager.ascx" %>
<%@ Register TagPrefix="Syndicate" TagName="PaymentListItem" Src="~/Secured/Controls/PaymentListItem.ascx"   %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="breadcrumb">
<a href="/Secured/Default.aspx?Ns=0">Home</a> / <b>Manage funds</b>
</div>
<div class="content-wrapper">
<p>Funds spent: <strong><%= PrintFundsUsed() %></strong> Funds for play this month: <strong><%= PrintFundsRemaining() %></strong></p>
<asp:MultiView ID="MultiViewList" runat="server">
<asp:View ID="ViewList" runat="server">
<Syndicate:Pager runat="server" ID="TopPager" PageSize="30" PageIndexPageParam="Page" OnPageIndexChanged="Pager_PageIndexChanged" Visible="true"/>
<table cellpadding="2" cellspacing="2">
<thead>
<tr>
<th>Account</th>
<th class="left">Description</th>
<th>Date created</th>
<th>Authorised by</th>
<th>Paid in</th>
<th>Paid out</th>
</tr>
</thead>
<tbody>
<asp:Repeater ID="RepeaterList" runat="server">
   <ItemTemplate>
    <Syndicate:PaymentListItem ID="PaymentListItem" ShowDetails="True" runat="server" />    
    </ItemTemplate>    
    <AlternatingItemTemplate>
     <Syndicate:PaymentListItem ID="PaymentListItem" ShowDetails="True" AlternateRow="True" runat="server" />  
    </AlternatingItemTemplate>  
   
</asp:Repeater>
</tbody>
</table>
<Syndicate:Pager runat="server" ID="BottomPager" PageSize="30" PageIndexPageParam="Page" OnPageIndexChanged="Pager_PageIndexChanged" Visible="false"/>
</asp:View>
<asp:View ID="ViewEmpty" runat="server">
<p>No entries found.</p>
</asp:View>
</asp:MultiView>

<p>
<a href="/Secured/Payments/Create.aspx?Ns=3">Add funds</a> &nbsp; <a href="/Secured/Payments/CreateMulti.aspx?Ns=3">Add multiple funds</a>
</p>
</div>
    <div class="content-wrapper-right">
<img src="/Assets/Images/lotto_badge.png" />
<img src="/Assets/Images/euro_badge.png" />
</div>
</asp:Content>
